import request from '@/utils/request'

// 查询科研人员信息历史跟踪列表
export function listHistory(query) {
  return request({
    url: '/peoplegroup/history/list',
    method: 'get',
    params: query
  })
}

// 查询科研人员信息历史跟踪详细
export function getHistory(researcherinfoHistoryId) {
  return request({
    url: '/peoplegroup/history/' + researcherinfoHistoryId,
    method: 'get'
  })
}

// 新增科研人员信息历史跟踪
export function addHistory(data) {
  return request({
    url: '/peoplegroup/history',
    method: 'post',
    data: data
  })
}

// 修改科研人员信息历史跟踪
export function updateHistory(data) {
  return request({
    url: '/peoplegroup/history',
    method: 'put',
    data: data
  })
}

// 删除科研人员信息历史跟踪
export function delHistory(researcherinfoHistoryId) {
  return request({
    url: '/peoplegroup/history/' + researcherinfoHistoryId,
    method: 'delete'
  })
}

export function getAllResearcherinfoHistory() {
  return request({
    url: '/peoplegroup/history/getAllResearcherinfoHistory' ,
    method: 'get'
  })
}


export function getresearcherhistoryInfo(researcherId) {
  return request({
    url: '/peoplegroup/history/history/'+ researcherId ,
    method: 'get'
  })
}